﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.Master" AutoEventWireup="true" CodeBehind="edit_user.aspx.cs" Inherits="RC1.admin.edit_user" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 102px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp1:ToolkitScriptManager>
    <h3>Stovna næming</h3>
    <table style="width: 100%;">
        <asp:Label ID="errorLabel" runat="server" Text="" Visible="false"></asp:Label>
        <tr>
            <td class="style1">
                T-post
            </td>
            <td>
                <asp:TextBox ID="emailTextBox" runat="server"></asp:TextBox> <span style="color:red;">*</span>
                <asp:RegularExpressionValidator runat="server" ID="rexNumber" ControlToValidate="emailTextBox"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="Vinarliga skriva eia ordiligan T-Post" ForeColor="Red"/>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Loyniorð</td>
            <td>
                <asp:TextBox ID="passwordTextBox" runat="server"></asp:TextBox> <span style="color:red;">*</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="passwordTextBox"
                    runat="server" ErrorMessage="Koda er kravt" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Fornavn
            </td>
            <td>
                <asp:TextBox ID="firstnameTextBox" runat="server"></asp:TextBox> <span style="color:red;">*</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="firstnameTextBox"
                    runat="server" ErrorMessage="Fornavn er kravt" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Eftirnavn
            </td>
            <td>
                <asp:TextBox ID="lastnameTextBox" runat="server"></asp:TextBox> <span style="color:red;">*</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="lastnameTextBox"
                    runat="server" ErrorMessage="Eftirnavn er kravt" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Telefonnummar
            </td>
            <td>
                <asp:TextBox ID="phoneNumberTextBox" runat="server"></asp:TextBox>
                <asp1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1"  TargetControlID="phoneNumberTextBox" FilterType="Numbers" runat="server">
                </asp1:FilteredTextBoxExtender>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="Button2" runat="server" Text="Dagfør" OnClick="Button2_Click" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" Text="Angra" onclick="Button1_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
